$(function() {
	$('#vue_vm_list div').hide();
});

function filialScoreSeniority() {
	if($('#vue_vm_list').length==0) {return;}
	$('#vue_vm_list div').hide();
	var monthStart = $('#startYear').val() + '-' + $('#startMonth').val();
	var monthEnd = $('#endYear').val() + '-' + $('#endMonth').val();

	find_basic_by_json(path+'/filialScore/seniority',
			{monthStart: monthStart, monthEnd: monthEnd}, function(response) {
		$('#vue_vm_list').html(gl_vue_vm_list_html);
		
		for(var i=0; i<response.data.length; i++) {
			response.data[i].index = i+1;
		}
		
		new Vue({
			el: '#vue_vm_list',
			data: {
				todos: response.data
			}
		});
		
		$('#vue_vm_list div').show();
	});
}

function deleteBatch() {
	deleteBatch_basic(path+'/filialScore/deleteBatch');
}
